import type { LoginParams } from '@/types/logIn'
import { http } from '@/utils/http'
// 请求回来的数据
interface dataToken {
	access_token: string
	expires_in: number
}
// 登录请求
export const postLoginAPI = (data: LoginParams) => {
  return http<dataToken>({
    method: 'POST',
    url: '/api/auth/user/unPermissions/login',
    data,
  })
}
